package service.user;

import pojo.User;

import java.util.List;

public interface UserService {
    public User getUserByUserCode(String userCode);

    //根据条件查询用户表记录数
    public int getUserCount(String queryUserName,int queryUserRole);

    //根据条件查询用户列表
    public List<User> getUserListByPage (String queryUserName, int queryUserRole, int currentPageNo, int pageSize);

    //添加用户
    public boolean addUser(User user);

    //根据用户ID获取用户信息
    public User getUserById(int id);

    //修改用户信息
    public boolean modify(User user);

    //判断用户是否存在
    public User selectUserCodeExist(String userCode);

    //删除用户
    public boolean deleteUserById(int id);

}
